using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._GeocodingTools
{
    /// <summary>
    /// <para>Rematch Addresses</para>
    /// <para>Rematches addresses in a geocoded feature class.</para>
    /// <para>重新匹配地理编码要素类中的地址。</para>
    /// </summary>    
    [DisplayName("Rematch Addresses")]
    public class RematchAddresses : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RematchAddresses()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_geocoded_feature_class">
        /// <para>Input Feature Class</para>
        /// <para>The geocoded feature class to be rematched.</para>
        /// <para>要重新匹配的地理编码要素类。</para>
        /// </param>
        public RematchAddresses(object _in_geocoded_feature_class)
        {
            this._in_geocoded_feature_class = _in_geocoded_feature_class;
        }
        public override string ToolboxName => "Geocoding Tools";

        public override string ToolName => "Rematch Addresses";

        public override string CallName => "geocoding.RematchAddresses";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_geocoded_feature_class, _in_where_clause, _out_geocoded_feature_class];

        /// <summary>
        /// <para>Input Feature Class</para>
        /// <para>The geocoded feature class to be rematched.</para>
        /// <para>要重新匹配的地理编码要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_geocoded_feature_class { get; set; }


        /// <summary>
        /// <para>Where Clause</para>
        /// <para>An SQL expression used to select a subset of features.</para>
        /// <para>用于选择要素子集的 SQL 表达式。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Where Clause")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _in_where_clause { get; set; } = null;


        /// <summary>
        /// <para>Updated Input Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_geocoded_feature_class { get; set; }


        public RematchAddresses SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}